# $Id: PKGBUILD 81988 2013-01-05 09:25:03Z bpiotrowski $
# Maintainer:  Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Nuno Araujo <nuno.araujo@russo79.com>

pkgname=python2-sensors
_pkgname=PySensors
pkgver=0.0.2
pkgrel=1
pkgdesc='Python bindings to libsensors'
arch=('any')
url='http://pypi.python.org/pypi/PySensors/'
license=('GPL')
depends=('python2' 'lm_sensors')
source=(http://pypi.python.org/packages/source/P/${_pkgname}/${_pkgname}-${pkgver}.tar.gz)
md5sums=('7786f888e59866a0b3b91ec2138b0d1f')

build() {
  cd "${srcdir}"/${_pkgname}-${pkgver}
  sed -i 's/env python/env python2/' sensors/*.py
  python2 setup.py build
}

package() {
  cd "${srcdir}"/${_pkgname}-${pkgver}
  python2 setup.py install --prefix='/usr' --root=${pkgdir}
}

# vim:set ts=2 sw=2 et:
